package com.itheima.dao;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    
   //不影响
    Map findOrderWithMemberAndSetmeal(Integer orderId);
    
    List<Order> findSameOrder(Order order);
    
    void add(Order order);
    
    Integer getOrderCountByDate(String date);
    
    Integer getOrderCountByLaterDate(String date);
    
    Integer getOrderCountByDateAndStatus(@Param("orderDate")String orderDate, @Param("orderStatus")String orderStatus);
 
    Integer getOrderCountByLaterDateAndStatus(@Param("orderDate") String orderDate, @Param("orderStatus") String orderStatus);
 
    List<Map> findHotSetmeal();
}
